package com.xiaoxing.zhinenghuacangku_jining.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.xiaoxing.zhinenghuacangku_jining.mvp.contract.JiNing_RuKuQingZhangContract;
import com.xiaoxing.zhinenghuacangku_jining.mvp.model.JiNing_RuKuQingZhangModel;

import dagger.Module;
import dagger.Provides;


@Module
public class JiNing_RuKuQingZhangModule {
    private JiNing_RuKuQingZhangContract.View view;

    /**
     * 构建RuKuQingZhangModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public JiNing_RuKuQingZhangModule(JiNing_RuKuQingZhangContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    JiNing_RuKuQingZhangContract.View provideRuKuQingZhangView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    JiNing_RuKuQingZhangContract.Model provideRuKuQingZhangModel(JiNing_RuKuQingZhangModel model) {
        return model;
    }
}